﻿using Core11_9Demo.BLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CoreInterfaceDemo.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class DemoController : ControllerBase
    {
        //注入BLL层
        private ItextBLL _itextBLL;
        public DemoController(ItextBLL itextBLL)
        {
            _itextBLL = itextBLL;
        }

        [HttpGet]
        public string getBll()
        {
            return _itextBLL.getBll();
        }

    }
}
